package com.by.bean;

import com.by.common.group.ISave;
import com.by.common.group.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("客户信息")
public class Customer {
    @ApiModelProperty("员工ID")
    @NotEmpty(message = "id不能为空",groups = {IUpdate.class})
    String employeeId;

    @ApiModelProperty(value = "员工名称",required = true)
    @NotEmpty(message = "名称不能为空",groups = {ISave.class, IUpdate.class})
    String lastName;

    @ApiModelProperty(value = "手机号")
    String email;

}
